Electron-phonon interaction in quasi-two-dimensional systems