Protonation and deprotonation of polyaniline films and powders revisited