The recovery of magnesium oxide and hydrogen chloride from magnesium chloride brines and molten salt hydrates