Analytical determination of the exact primary beam direction from Kikuchi patterns