Electrochemical methods for carbon dioxide separations