Inverse stochastic orders and generalized Gini functionals