Polycondensates containing six-membered rings, not condensed with other rings, with nitrogen atoms as the only ring hetero atoms