A Model to Compute Phase Diagrams in Oxides with Empirical or First‐Principles Energy Methods and Application to the Solubility Limits in the CaO–MgO System