Disordering of MgAl2O4 spinel from first principles