Inhomogeneity terms in exchange and correlation