Model-based design workflow for engine control systems with applications to a diesel engine