Ion size and size memory effects with electropolymerized polyaniline