Trade in final goods and the impact of innovation