Thermodynamic modeling of hydrothermal synthesis of ceramic powders