Sampling and interpolation in shift-invariant spaces and error estimates covering discontinuous signals