The free energy of sodalite and the behavior of chloride, fluoride and sulfate in silicate magmas