Effect of Confinement on Capillary Phase Transition in Granular Aggregates.