Density-functional formalism: Sources of error in local-density approximations.