Economic function and growth of American port towns in the eighteenth century