Temperature dependence of current–voltage characteristics of terahertz quantum-well photodetectors