After Afghanistan, US spy agencies pivot toward China