can you extract pure magnesium from its ore