Thermal and photochemical degradation of dodecylsulfate doped polypyrrole