On the regularization of sliding modes