Folding drives cortical thickness variations