A framework for numerically computing debris-flow inundation