Influence of MgO barrier quality on spin-transfer torque in magnetic tunnel junctions