Characterization of YBa2Cu3Ox using core- and valence-level XPS