Generalized f−sum rules and Kohn formulas on nonlinear conductivities