Estimating the mud depth of debris flow in a natural river channel: a theoretical approach and its engineering application