In an ionic bond, nonmetals are most likely to