X-ray Absorption Spectroscopy in YBa2Cu3O7-x superconductors with variable oxygen con¬tent