Opportunities and challenges in closed-loop systems in type 1 diabetes.