Sustainable Hydrothermal and Solvothermal Synthesis of Advanced Carbon Materials in Multidimensional Applications: A Review