Numerical study of ice jam dynamics in upper Niagara river