Model predictive maneuvering control and energy management for all-electric autonomous ships