How did the invention of the cotton gin help to increase the the importance of cotton as a cash crop in the south? how did this affect slavery?