Tuning optical properties and enhancing solid-state emission of poly (thiophene) s by molecular control: a postfunctionalization approach