Electron configuration and valence electrons