Scarce jobs and low pay no match for the opportunities offered by Beijing’s aggressive investment in scientific talent.