Controlling the properties of solid-liquid interfaces in silica nanopores via surface functionalization