Nonlinear least squares fitting applied to copolymerization modeling