Phase noise insensitive measurements of the nonlinear refractive index in fiber links