Structural studies of polythiophenes