Detection of freely propagating terahertz radiation by use of optical second-harmonic generation.