Synthesis of 5-azolyl-2,4-dihydro-3H-1,2,4-triazole-3-thiones and 5-azolyl-1,3,4-thiadiazol-2-amines based on derivatives of 5-arylisoxazole-3-carboxylic and 4,5-dichloroisothiazole-3-carboxylic acids