Dependence of the Efficiency of the Nonlinear-Optical Response of Materials on their Linear Permittivity and Permeability