Optimal feedback input design for dynamic nonlinear systems