Three-Dimensional Simulation Stability Analysis of Slopes from Underground to Open-Pit Mining