Text this: First principles calculations of the structural, electronic, magnetic, and thermodynamic properties of the Nd2MgGe2 and Gd2MgGe2 intermetallic compounds