Reaction of hydrogen with alloys of magnesium and copper