Cation disorder and gas phase equilibrium in an YBa2Cu3O7−x superconducting thin film