If atoms of a halogen nonmetal gain one electron, the atoms then have how many valence electrons?