Compressing liquid nanofoam systems: liquid infiltration or nanopore deformation?