The importance of the rotor in hydrazone-based molecular switches