Nonlinear refractive index measurement by Fresnel diffraction from phase object