Solid-Solution Hardening in Mg-Gd-TM (TM = Ag, Zn, and Zr) Alloys: An Integrated Density Functional Theory and Electron Work Function Study