Calculates the coherence length of a light source as a function of the wavelength and the spectral width.