A discussion of Margules-type formulations for multicomponent solutions with a generalized approach