How does the arrangement of electrons in an atoms relate to its arrangement in the periodic table?