An experimental study of valence-state partitioning by XANES