Analytical study of the transverse distribution of along-channel and transverse residual flows in tidal estuaries