Luminescent properties of some imidazole and oxazole based heterocycles: Synthesis, structure and substituent effects