Explain the mathematical difference between L1 and L2 regularization and how they affect model weights.