Magnetostatic coupling in spin dependent tunnel junctions