Chromism and luminescence in regioregular poly(3-dodecylthiophene)