River dynamics and the diversity of Amazon lowland forest