Excited state properties and acid–base equilibria of trans-2-styrylbenzoxazoles