Electron-triggered molecular and supramolecular metamorphism in viologen-based architectures