Theory of tunneling magnetoresistance in a junction with a nonmagnetic metallic interlayer