Thermodynamics of Capillary Rise: Why Is the Meniscus Curved?