A numerical model for the simulation of debris flow triggering, propagation and arrest