Ionic liquid confined in silica nanopores: molecular dynamics in the isobaric–isothermal ensemble