Low-Discrepancy Sequences for Piecewise Smooth Functions on the Torus