Stereodynamics of E/Z isomerization in rotaxanes through mechanical shuttling and covalent bond rotation