Population inversion in optically pumped asymmetric quantum well terahertz lasers