Existence and duality theorems for convex problems of Bolza