A linkage moment approach to modeling condensation polymerization with multiple monomers. I. Linear polymers