Opto-electronic response of spinels MgAl2O4 and MgGa2O4 through modified Becke-Johnson exchange potential