Predictive Control of Container Flows in Maritime Intermodal Terminals