Role of rotamerisation and excited state intramolecular proton transfer in the photophysics of 2-(2′-hydroxyphenyl)benzoxazole, 2-(2′-hydroxyphenyl)benzimidazole and 2-(2′-hydroxyphenyl)benzothiazole: a theoretical study