Dynamical Mean Field Calculation of Grafting Reaction of End-Functionalized Polymer