Partitioning of interaction-induced nonlinear optical properties of molecular complexes. I. Hydrogen-bonded systems