Theory of inelastic lifetimes of low-energy electrons in metals