Thermodynamic activity of solute in multicomponent alloy from first-principles: Excess Mg in Mg3(Sb1-xBix)2 as an example