Tuning optical and electroluminescent properties of poly (thiophene) s via post-functionalization