How could you define the perimeter of a non-simple closed curve? Give an example in your explanation.