Quantum-enhanced THz spectroscopy and imaging