Text this: Exploring electronic, optoelectronic, and thermoelectric properties of ternary compound MgSrSe2 from first-principles study