Layered LiCo1−xMgxO2 (x = 0.0, 0.1, 0.2, 0.3 and 0.5) cathode materials for lithium-ion rechargeable batteries