Singularities of convex hulls of smooth manifolds