Gini index decomposition for the case of two subgroups