Phase stability of erbium barium cuprate, ErBa2Cu3O7-x and ytterbium barium cuprate, YbBa2Cu3O7-x