Hydration behavior under confinement by nanoscale surfaces with patterned hydrophobicity and hydrophilicity