Thermodynamic properties of surface carbon on ruthenium