Electron-phonon heat transfer in monolayer and bilayer graphene