Validity of the Julliere model of spin-dependent tunneling