Terahertz emission spectroscopy