Localization of charged excitations in polyaniline