A simple density functional theory for inhomogeneous liquids