Indazole, oxathiadiazole, and thiadiazine derivatives from thiosemicarbazides