Imaging the transition from flat to normal subduction: variations in the structure of the Nazca slab and upper mantle under southern Peru and northwestern Bolivia