On the differentiability of convex functions