Variation of electronegativity with oxidation state with emphasis on atomic charges