Retrieval of minor constituents in a cloudy atmosphere with remote-sensing millimetre-wave measurements