Hazard Classification and Stability Analysis of High and Steep Slopes from Underground to Open-Pit Mining