Spectral Domain Interferometry for Terahertz Detection: Concept and Application