Calculates the free spectral range of a grating as a function of the wavelength and of the diffraction order.