The theory of the interaction of electrons with lattice vibrations in metals