Self-organized amorphous TiO2 nanotube arrays on porous Ti foam for rechargeable lithium and sodium ion batteries