process production of magnesium flow chart