How livestock and flooding mediate the ecological integrity of working forests in Amazon River floodplains.