A fast redox-induced switching mechanism in a conformationally controllable molecular thread in solution