Development and Optimization of Terahertz Detection Systems