Stability and safety of cathode materials (with possible Al doping) for Li-ion batteries: thermodynamic and electrochemical studies