Modelling of mass transport and insulin secretion of a membrane-based encapsulation device of pancreatic islets