RobustnessAnalysisofStochasticJumpsandDesignof Resource-OptimalSwitchingPoliciesforCyber-Physical Systems