Comparative analysis of the processes of polymer networks formation via polycondensation and polymerization