Transplantation of encapsulated cells and tissues