Density-functional theory of the nonlinear optical susceptibility: Application to cubic semiconductors.