X-ray production and second-harmonic generation during femtosecond laser microdrilling