Gain control in semiconductor quantum dots via state-resolved optical pumping.