Rotaxane-based molecular machines operated by photoinduced electron transfer