Gain spectroscopy and plasma recombination in CdS