Comparison between the mechanical behavior of barriers against rock fall vs debris flows