Synthesis of fused aromatic and heterocyclic imidazole derivatives and dihydroquinoxalines of biological interest