Spectroelectrochemical studies of proton exchange processes in the electrochemical reactions of polyaniline using pH indicators