Knowledge, growth and patterns of trade