Synthesis and antimicrobial activity of new 1,2,4-triazole and 1,3,4-thiadiazole derivatives.