Development of a Time-Domain Terahertz Spectrometer