Electron-phonon interactions in low-dimensional carbon systems: superconductivity and charge-density waves