Control and Estimation Oriented Model Order Reduction for Linear and Nonlinear Systems