Separation of Ions Using Countercurrent Electrolysis in a Thin, Porous Membrane