A Fourier transform spectrometer for high resolution measurements of static and dynamic spectra of semiconductor lasers