New Insights into Silicon Purification by Alloying–Leaching Refining: A Comparative Study of Mg–Si, Ca–Si, and Ca–Mg–Si Systems