Explain the vanishing gradient problem and how specific activation functions or architectures mitigate it mathematically.