Climate and fragmentation affect forest structure at the southern border of Amazonia