The nasicon-type titanium phosphates Ati2(PO4)3 (A=Li, Na) as electrode materials