Duality and stability in extremum problems involving convex functions.