X-ray Linear Dichroism in cubic compounds: the case of Cr3+ in MgAl2O4