Treatment of obesity and diabetes with bariatric surgery