Effluent polishing in wastewater treatment