Electron-phonon interaction in disordered conductors: Static and vibrating scattering potentials