Amazon reports first quarterly loss since 2015, denting stock