Magnetic coupling in Gd/Ni bilayers