Evolution of territorial and imagined borders in the Amazonian region between 1639-1912