Combination of nuclear magnetic resonance spectroscopy and nonlinear methods to analyze the copolymerization of phosphonic acid derivatives