S&P 500 Q2 earnings are on track to rise 52%, but large AI-related investment gains at Alphabet and Amazon are inflating headline profit growth.