The microscopic switching mechanism of a [2]catenane