Text this: Optimal control of differential systems with discontinuous right-hand side /