Comparison of the instantaneous and averaged emission spectra of an injection laser operating under spiking conditions