A self-regulated insulin delivery system