Heterocyclic compounds containing 1,3-thiazole or hydrogenated 1,3-thiazole rings not condensed with other rings