Double-Charge Exchange of Negative Pions in Inclusive Reactions on Nuclei at 40 GeV/c