Pseudopotentials in the theory of metals