TERAHERTZ TIME-DOMAIN SPECTROSCOPY BASED ON NONLINEAR OPTICS