Infrared nanophotonics with carbon nanotube metamaterials