Green Synthesis of Advanced Carbon Materials Used as Precursors for Adsorbents Applied in Wastewater Treatment