Kinetics and mechanism of charge-transfer reactions between conducting polymers and redox ions in electrolytes