Rational design of thermally stable polymorphic layered cathode materials for next generation lithium rechargeable batteries