Thermodynamic and experimental study of carbon formation on carbides under hydrothermal conditions