Thermal properties of the valence electrons in alkali metal clusters