Assessing resilience of river systems