Amazon misses revenue expectations in second-quarter earnings