Low-discrepancy sequences for piecewise smooth functions on the two-dimensional torus