Simulation of flow in rivers and tidal channels with an implicit finite difference method of the ADI-type