Synthesis and Optical Properties of Thermotropic Polythiophene and Poly(p-phenylene) Derivatives