Tencent second-quarter profit rises 29%