Numerical modelling of entrainment/deposition in rock and debris-avalanches