Cation disorder in MgX2O4(X= Al, Ga, In) spinels from first principles