The effect of alkali halides on the thermal hydrolysis of magnesium chloride and magnesium bromide