Splitting rivers at their seams: bifurcations and avulsion