pH-Triggered dethreading-rethreading and switching of cucurbit[6]uril on bistable [3]pseudorotaxanes and [3]rotaxanes.