Mixed-Integer Nonlinear Programming for Energy-Efficient Container Handling