Managing heterogeneous traffic on rail freight networks incorporating the logistics needs of market segments