Numerical simulation of dry granular flows: From the reproduction of small-scale experiments to the prediction of rock avalanches