Hydration layers at the graphite-water interface: Attraction or confinement