Protonation of polyaniline films: effects of anion size and film structure