Terahertz spectroscopy and technology