Generalized Levinson theorem: Applications to electron-atom scattering.