A study of the redox reaction mechanisms of polyaniline using a quartz crystal microbalance