Synthesis and Photophysical Properties of Some Benzoxazole and Benzothiazole Compounds