Thermodynamics of adsorption from solution. Part 1.—Perfect systems