Electronic and optical properties of alkali-metal-intercalated single-wall carbon nanotubes