Numerical analysis of snow avalanche mechanics and of its interaction with structures