Intramolecular Reaction in Polycondensations. I. The Theory of Linear Systems