Theory of electric transport through Fe/V/Fe trilayers including the effect of impurities