Phase separation in antiferromagnetic YBa2Cu3O6+x