Ion and solvent transfers accompanying redox switching of polypyrrole films immersed in divalent anion solutions