Modelling for the optimal sizing of an automatic intermodal freight terminal