Some features of the synthesis of heat-resistant heterocyclic polymers