Dither Shape in the Averaging of Switched Systems