Sparse Mixture-of-Experts are Domain Generalizable Learners