Multiscale hierarchical analysis of rock mass and prediction of its mechanical and hydraulic properties