Dependence of quartz wettability on fluid density