Work functions of elements expressed in terms of the Fermi energy and the density of free electrons