Magnetic properties of Gd-substituted Y2Co7 hydrides