A nanofibrous encapsulation device for safe delivery of insulin-producing cells to treat type 1 diabetes