Enhanced photo and thermal oxidative stability of the charge-transfer complexes of a conjugated polymer