Management of logistic operations in intermodal terminals by using dynamic modelling and nonlinear programming