Magnetoresistance and spin-transfer torque in magnetic tunnel junctions