Probing molecular structure by the chemical resolution of hydrogen migrations