Improving the electrochemical performance of layered lithium-rich cathode materials by fabricating a spinel outer layer with Ni3+