Unified approach for uncovering the structural role of Mg in amorphous materials: Diopside glass | Synapse