An extension of the inequality index I and the I(p) curve to non economic variables