Gauss Newton Nonlinear Least Squares Matlab