Cyanolysis and azidolysis of epoxides by haloalcohol dehalogenase: theoretical study of the reaction mechanism and origins of regioselectivity.