Weight loss surgery as a treatment for diabetes