Thrusting and foreland basin evolution in the Southern Pyrenees