Direct detection of a fast modulated terahertz light with a spectrally matched quantum-well photodetector