Adaptive optimal control for large-scale nonlinear systems