Synthesis, Characterization, and Properties of Carbon Nanocomposites and Their Application in Wastewater Treatment