A new algorithm for bank-failure mechanisms in 2D morphodynamic models with unstructured grids