Structures and energetics of clusters surrounding diatomic anions stabilized by hydrogen, halogen, and other noncovalent bonds