Gravar-mail: A three-dimensional spin-diffusion model for micromagnetics