Thermal stability of polypyrroles