The mechanism of reactions between alkali atoms and halogen hydrides