Amazon reports surprise earnings loss in Q1