Third-harmonic generation as a local probe for on-line monitoring of femtosecond optical breakdown in transparent materials