Dynamic multi-segment pseudowire routing