Modi leaves Vietnam; heads to China for G20