Manipulation of Goos–Hänchen shifts in a HCN→HNC isomerization with permanent dipole moments