Electrolyte Effects on the Switching Reaction of Polyaniline