Calculation of second-order optical response in semiconductors | Synapse