A generalized MBO diffusion generated motion for orthogonal matrix-valued fields