Structure and tectonic history of the foreland basins of southernmost South America