AI boom softens blow from China's July trade slowdown