Reaction of hydrogen with alloys of magnesium and nickel and the formation of Mg2NiH4