Numerical modelling of slab breakoff and its magmatic effects