Secondary flows in rivers: The effect of complex geometry