A semi-analytical study on the residual transport of salinity and sediment trapping in well-mixed estuaries