The wave mechanics of electrons in metals