Uber reports better-than-expected results for second quarter