Spin transfer switching and spin polarization in magnetic tunnel junctions with MgO and AlOx barriers