Terahertz Quantum Well Photodetectors With Metal-Grating Couplers