Pseudopotential and full-electron DFT calculations of thermodynamic properties of electrons in metals and semiempirical equations of state