Text this: Electrochemical investigation and thermodynamic assessment of the Mg-Pd system