The thermodynamic characteristics of structural changes in water accompanying the hydration of ions