Terahertz Frequency Spectroscopy and its Potential for Security Applications