Synthesis of some heterocyclic compounds derived from chalcones and diketones as potential antifungal and antibacterial agents