Trade with China devastated American communities. A research project offers lessons on how to avoid repeating the same tragedy.