Thermal undoping in poly(3-alkylthiophenes)