United Auto Workers elects Ray Curry to replace Rory Gamble as president