Effects of Surface Chemistry on Structure and Thermodynamics of Water Layers at Solid−Vapor Interfaces†