How long did it take for states like New York to abolish all slave laws