Meta smashes Q2 earnings as its AI investments surge