Predicting giant magnetoresistance using a self-consistent micromagnetic diffusion model