Development of a finite volume model suitable for studying riverine and coastal morphodynamics