Application of Fresnel diffraction to nondestructive measurement of the refractive index of optical fibers