China Baidu’s second quarter exceeds expectations, powered by ad sales growth