Cation exchange behavior during the redox switching of poly (3,4-ethylenedioxythiophene) films