Electron Counting in Solids: Oxidation States, Partial Charges, and Ionicity.