A theoretical model of the explosive fragmentation of vesicular magma