ms_lines function

Convert polygons to topological boundaries (lines)