Breakdown of the correlation between oxidation states and core electron binding energies at the sub-nanoscale