Thermodynamics, Adhesion, and Sliding Friction