Determinants of local and regional communities in intermittent and perennial headwaters of the Bolivian Amazon