Baidu Q2 revenue slips 4% as AI business hits half of core