Microscopic calculation of the mass diffusion coefficient using linear response theory