A pseudorotaxane on gold: formation of self-assembled monolayers, reversible dethreading and rethreading of the ring, and ion-gating behavior.