Nonlinear least squares estimation