Role of internal conversion on the excited state properties of trans-styrylpyridines