a cotton gin was a machine that removed seeds from cotton