Polypyrrole-based electrode coatings switchable electrochemically between the anion- and cation-exchanger states