Silicothermic reduction process in magnesium production