Membrane process for water treatment and water reuse