Computing decomposable multigroup indices of segregation