Threading-gated photochromism in [2]pseudorotaxanes