Optimization-based convex relaxations for nonconvex parametric systems of ordinary differential equations