Thermodynamic analysis of the surface of biomaterials