Knowledge Diffusion, Trade, and Innovation across Countries and Sectors