A newton-type method for the optimization and control of non-linear econometric models*