What are valence electrons used for by an element?