Optimization of insulin to carbohydrate ratio in type 1 diabetes using CGM and insulin pump data