Control of reactivity and selectivity in isomerization and rearrangement reactions inside confined spaces.