Electrochemical Swing Process for Carbon Capture and Other Separations