On the structure of singular sets of convex functions