Influence of the partial closure of estuaries on the residual sediment transport and trapping