China's rapid advances in technology and manufacturing are making it harder for American companies to compete.