Sum rules in x-ray resonant Raman scattering: recovering the Co ground state information in CoFe2O4 as a test case.