A density functional study of liquid–liquid interfaces in partially miscible systems