What are the mechanisms and applications of advanced oxidation processes, such as ozonation and photocatalysis, in water and wastewater treatment, and how can these processes be optimized for efficient removal of organic pollutants and emerging contaminants?