What was the result of the increased production of cotton after the invention of the  cotton gin?