Modulating Wettability of Layered Materials by Controlling Headgroup Dynamics and Alkyl Chain Conformations