Thin chalcogenide capillaries as efficient waveguides from mid-infrared to terahertz