Hydration of salts as a two-step process