extraction of magnesium from its chief ore