Terahertz spectroscopy and its applications to dielectric and electrical insulating materials