JPM, GS post strong second-quarter earnings