Theory of the zero-bias anomaly in magnetic tunnel junctions: Inelastic tunneling via impurities