Electronic and optical properties of functionalized thiophenes, an experimental and theoretical study