energy features of magnesium production and use in