Speed and energy optimization method for the inland all-electric ship in battery-swapping mode | Synapse