Thermochromism in thin films of poly(3-alkylthiophenes)