Google reported a $5.9 billion loss in Q2 due to massive capital expenditures on AI infrastructure