Reversible switching of surface wettability