Many-body effects on terahertz quantum well detectors