Encapsulation of pancreatic beta cells