A Comprehensive Review of Modeling and Optimization Methods for Ship Energy Systems