Intersubband mid-infrared emission in optically pumped quantum wells