Multiphase mixed-integer nonlinear optimal control of hybrid electric vehicles. (January 2021)