Metal to semiconductor transition of vacuum annealed YBa2Cu3O7-x and characterization of its semiconducting state