Modeling rock failure using the numerical manifold method followed by the discontinuous deformation analysis