Waveform effects in wavelength modulation spectrometry