Understanding Gradient Clipping: A Comprehensive Guide