Continuum theory of transport through capillary membranes