How does the shape and surface energy of pores affect the adsorption of nanoconfined fluids?