what was the main purpose of the 13th amendment