A kinetic study of polypyrrole degradation