Goldman Sachs earnings rise in Q2