Shaping Level Sets with Submodular Functions