Electron-phonon effects in graphene and armchair (10,10) single-wall carbon nanotubes