In situ UV–VIS spectroelectrochemical study of polyaniline degradation