Engineering challenges in the development of an encapsulated cell system for treatment of type 1 diabetes.