Polyaniline: protonation/deprotonation of amine and imine sites