Generalizing diffuse interface methods on graphs: non-smooth potentials and hypergraphs