R&D, International Production and Trade: The Technological Gap Theory in a Factor-Endowment Model