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