Existence of codimension-one foliations