The C-C bond as shuttle of two electrons in intermolecular and intramolecular processes: a theoretical approach to molecular batteries