Main resonances in directly modulated semiconductor lasers: effect of spontaneous emission and gain saturation