how many valence electrons in transition metals