What caused many men to free slaves from 1782 to 1810?