Magma chambers and localization of deformation during thrusting