Hydrogen sorbing magnesium alloys and composites