Conductivity degradation due to thermal aging in conducting polyaniline and polypyrrole