Structural changes in the thermochromic solid-state phase transition of poly(3-alkylthiophene