Spanning-tree models for A f homopolymerizations with intramolecular reactions