Electron-phonon interaction in 2-dimensional systems - a microscopic approach