Inventory theory, mode choice and network structure in freight transport