On Residual Circulation in Shallow Tidal Basins