Theoretical and spectroscopic study of a series of styryl-substituted terthiophenes