Averaging of Nonsmooth Systems Using Dither