Advances in statistical mechanics of rock masses and its engineering applications