Optimal Control of Dynamic Systems Driven by Vector Measures