Mass transport in porous materials under combined gradients of composition and pressure