Negative ion formation in scattering of diatomic positive ions from Ag(111)