Ionic interactions and charge transport properties of metallopolymer films on electrodes