Conductivity and stability in ion-implanted polyaniline