how is valence electron determained using the electron configuration​