Thermodynamics of Multi-component Gas–Melt Equilibrium in Magmas: Theory, Models, and Applications