Deviations from piecewise linearity in the solid-state limit with approximate density functionals.