Nonequilibrium thermodynamics of interfaces using classical density functional theory