Defective spinels, Inversion thermodynamics, Vacancy effects, Non-ideal cation mixing, Free-energy modelling