The valence of copper in YBa2Cu3O6.9 ― an X-ray absorption study