Thermodynamics of hyperfiltration (reverse osmosis)