Structural and magnetic properties of GdCo5−xNix