Understanding the role of Mg-doped on core-shell structured layered oxide LiNi0.6Co0.2Mn0.2O2