Thickness-weighted averaging in tidal estuaries and the vertical distribution of the eulerian residual transport