Thermally triggered polyrotaxane translational motion helps proton transfer