Optical spectroscopy of inverted electron populations in double-barrier resonant-tunnelling structures