Terahertz Sensing with Quantum-Cascade Lasers