Electronic structure and stability of Li1 + xMn2 −xO4 spinels