Xi urges Afghans to stamp out terrorism