Electronic properties of clean and Li-doped single-walled carbon nanotubes