Production capacity in Britain and the United States was improved by the invention of the cotton gin by the American Eli Whitney in 1793. From what source were cotton gins first bought and later resold?