A multivariate grain size and orientation distribution function: derivation from electron backscatter diffraction data and applications