Critical behavior of the magnetic susceptibility of GdNi2