On the stability of river bifurcations created by longitudinal training walls