A thermodynamic study of the Ca-CaF2, Ca-CaCl2, Ca-CaBr2 and Ca-CaI2 systems