Thermodynamic Stability of Transition-Metal-Substituted LiMn2-x Mx O4 (M=Cr, Fe, Co, and Ni) Spinels.