A comprehensive thermodynamic theory of the cross-effect in isothermal diffusion (“Hertz effect”) in a multicomponent gas, liquid, or solid