Hydrogenation process of the Gd3M (M = Ni or Co) intermetallics compound