Quantum diffusion of muonium in an inhomogeneous crystal