1D Numerical Model of Muddy Subaqueous and Subaerial Debris Flows