Comparative Study of Water-Mediated Interactions between Hydrophilic and Hydrophobic Nanoscale Surfaces