Amazon reports weaker-than-expected earnings