The difference between a smooth multi-country trip and an exhausting one usually comes down to sequencing. Here is how we plan rail-linked itineraries across borders.