A mutual information-based k-sample test for discrete distributions