Heterocyclic compounds containing 1,2-oxazole or hydrogenated 1,2-oxazole rings