Ultraviolet and infrared studies of the single-walled and multi-walled carbon nanotube films with different thickness