Habitat preference predicts genetic diversity and population divergence in Amazonian birds