Magma mixing enhanced by bubble segregation