Effect of local molecular structure on the chain-length dependence of the electronic properties of thiophene-based pi-conjugated systems.