Layered Li-rich vanadium phosphate Li9V3(P2O7)3(PO4)2: cathode and anode materials for lithium-ion batteries