Magnetic properties of hydrogen-induced amorphous RCo2Hx (R ≡ Gd, Tb) alloys