Model-based feedback control of container handling in intermodal terminals