Hydrogen-bond symmetrization and molecular dissociation in hydrogen halids