Measurement of thickness of thin film by fitting to the intensity profile of Fresnel diffraction from a nanophase step