Removal of endocrine disruptors and pharmaceuticals during water treatment