Application of Fresnel diffraction from a phase step to determination of the spectral line profile