Text this: Investigation of structural mechanisms of laser-written waveguide formation through third-harmonic microscopy