Piezo- and thermo-optic behavior of spinel (MgAl2O4)