Amazon's stock surges as Q2 earnings show profit and sales jump