Syntheses, characterization and photophysical behaviour of some nitrogen containing heterocyclic compounds