Electrochemically Controlled Supramolecular Switches and Machines