Key factors in determining the arrangement of π-conjugated oligomers inside carbon nanotubes.