explain how the number of valence electrons in atoms relate to their bonding with other atoms to form molecules ?????