Ionic liquids under nanoscale confinement