flowchart of how magnesium is extracted from ore