Ends of leaves of codimension-one foliations