Heterocyclic compounds containing seven-membered rings having one nitrogen atom as the only ring hetero atom