production of magnesium alloys