Multi-level model predictive control for all-electric ships with hybrid power generation