A method to predict the stable geometry of a channel connecting an enclosed harbor and navigable waters