Synthesis and antibacterial activity of some new 1,3,4-oxadiazole and 1,3,4-thiadiazole derivatives