Heterocyclic compounds containing seven-membered rings having two nitrogen atoms as the only ring hetero atoms