Tuning capillary penetration in porous media: Combining geometrical and evaporation effects