An accurate method for determining crystallographic orientations by electron diffraction