The thermodynamics of adsorption at the surface of solutions