International trade and R&D spillovers