An analytic model of tidal circulation in a narrow estuary