Chain-fragment doping and the phase-diagram of yba2cu3o7-x