Text this: First-principles study of electronic, elastic and optical properties of Zn1-xMgxTe ternary alloys using modified Becke-Johnson potential