Real-time Fourier transformation of lightwave spectra and application in optical reflectometry