valency of magnesium chloride