A function to calculate the stiffness tensor for each grain in an ebsd map. Based on MTEX #mtexScript