Thermodynamics of formation of a crystalline salt of the sodium anion