N-containing polycondensation products