1D-confinement of polyiodides inside single-wall carbon nanotubes