Determination of crystal phase from an electron backscatter diffraction pattern