A diffraction technique to investigate the orientational alignment of anisotropic particles: studies of clay under flow