The International Dynamics of R&D and Innovation in the Short and in the Long Run