The comparative effects of bariatric surgery on weight and type 2 diabetes