Text this: Ab-initio studies of the structural, electronic, optical and magnetic properties of DyMg intermetallic compound