Insights into the structural, electronic and optical properties of MgA2B4(A = Sc, Y; B = S, Se) spinel compounds: Direct energy band gap materials