Phase diagram of the pseudobinary BaCuO2-YBa2Cu3O6.5-YCuO2.5 system