Transport and retention of colloids in saturated and unsaturated porous media