Improved signal processing in pulsed and cw spin-flip Raman laser spectrometers