Thermodynamics of the effects of adsorption on interparticle forces