Modeling the stability of engineering structures in the mining process