hoe do you extract magneisium from its meatl ore