Efficient Operations at Intermodal Terminals Using a Multi-agent System