Causes and consequences of flat-slab subduction in southern Peru