Phase equilibria and crystal chemistry in R-Ba-Cu-O systems in relation to high Tc superconductors