First-principles study on lithium absorption in carbon nanotubes