AIG returns to profitability in the first half of 2017