China's Baidu beats Q3 revenue estimates as ad sales recover