Emulation of short-range ordering within the Compound Energy Formalism: Application to the calcite-magnesite solid solution