Stav dette: Thermodynamics, solubility, and environmental issues