Influence of Adsorption and Capillary Pressure on Phase Equilibria inside Shale Reservoirs