Mechanics of Kinking in Cables