What is the mathematical difference between L1 and L2 regularization, and in what scenario would you prefer one over the other?