Boundary value problems for second order differential equations in convex subsets of a Banach space