Neighboring group migration in enzyme-mediated halohydrin formation