Diffusion in volatile-bearing magmas