Membrane systems in pharmaceutical water treatment