Pharmaceuticals and detergents in hospital and urban wastewater: comparative monitoring, treatment, and assessment of impacts