Ab initio calculations of lithium titanates related to anodes of lithium-ion batteries