Influence of the doping anion concentration on the mechanism of redox reactions of polyaniline