On the molecular mechanisms of / uptake in confined ionic liquids: A computational study