Physical basis for constrained lattice density functional theory.