Generalized Relative Entropies as Contrast Functionals on Density Matrices