A criterion for the fragmentation of bubbly magma based on brittle failure theory