Second-harmonic imaging in the scanning optical microscope