Controlled swapping of nanocomposite surface wettability by multilayer photopolymerization