Thermodynamic properties of carbon up to the critical point