Negative pion capture by medium nuclei in the Z ≈ 50 region