Compositional effects of fluids on spreading, adhesion and wettability in porous media