Absorption of single-wall carbon nanotubes at terahertz frequencies