The electronic structure of magnesium dialuminium tetraoxide (spinel) using X-ray emission and X-ray photoelectron spectroscopies