Charge Transfer, Phase Separation and Percolative Superconductivity in YBa2Cu3O6+y