Broadband optical and terahertz properties of 1D van der Waals heteronanotubes