Control and modeling techniques in biomedical engineering: the artificial pancreas for patients with type 1 diabetes