Carbon and transition metal containing titanium phosphates as electrodes for lithium ion batteries