Synthesis and biological testing for antibacterial activity of some potential heterocyclic derivatives