Amazon posts better-than-expected financial results for 2nd quarter