Local nonlinear least squares: Using parametric information in nonparametric regression