A dynamic nonlinear optimization framework for learning data-driven reduced-order microkinetic models