Bulk Mg-doping and surface polypyrrole-coating enable high-rate and long-life for Ni-rich layered cathodes