A methodology for determining average lattice orientation and its application to the characterization of grain substructure