Negative pion capture in chemical compounds