U.S. posts higher-than-expected GDP for Q2