Explain the concept of gradient vanishing and exploding, and describe how you mitigate these issues in deep neural networks.