Mechanistic Study of Photochemical and Advanced Oxidation Processes for Degradation of Pharmaceuticals in Water