Maine governor says he had bariatric surgery, lost 50 pounds