Length-dependent optical effects in single-wall carbon nanotubes.