The reaction of allitol with hydrogen halides