Improving Overnight Safety of Type 1 Diabetes Subjects: Failure Detection Method of Glucose Sensor–Insulin Pumps System Based on an Average Model