Carbon capture in polymer-based electrolytes