Theoretical and experimental study for the optimization of flexible barriers to restrain Debris Flows