Study of structural phase transitions in YBa2Cu3O6+δ by x-ray photoelectron spectroscopy