Numerical simulations of the time-space evolution of convection and mixing of volatile-rich magma in magma chambers and dikes