Dielectric function of single-wall carbon nanotubes