Nonlinear predictive control for the management of container flows in maritime intermodal terminals