The interplay between pore size and wettability in solid-templated silica films