A generalized formulation of latent heat functions in enthalpy-based mathematical models for multicomponent alloy solidification systems