Gravar-mail: Design of a bioartificial pancreas