A stable layered P3/P2 and spinel intergrowth nanocomposite as a long-life and high-rate cathode for sodium-ion batteries.