Segregation in hard-sphere mixtures under gravity. An extension of Edwards approach with two thermodynamical parameters