Electron-phonon interaction in graphite intercalation compounds