Data-Driven Model Order Reduction for Continuous- and Discrete-Time Nonlinear Systems