Gain characteristics of quantum dot lasers: Experiment and theory