Years of heavy investment in China and growing funding pressure in the US are changing who leads global academic research.