Optical spectroscopy and light-induced gratings in Cr3+ doped non-stoichiometric magnesium spinel