Pharmaceutical wastewater treatment and water purification for the pharmaceutical industry