Atomic structure and dynamic behaviour of truly one-dimensional ionic chains inside carbon nanotubes.