Explain the mathematical difference between L1 and L2 regularization, and describe scenarios where you would prefer one over the other.