Wavefront study in a Gaussian beam passed through a nonlinear optical medium