Thermodynamics of hydrogen-bonded polymer gel-solvent systems