Synthesis of some pyrimidine, thiazole and pyrazole derivatives as potential antifungal and antibacterial agents