A Numerical Method for the Computation of Bed Degradation Downstream a Dam