First-principles theory of quantum well resonance in double barrier magnetic tunnel junctions.