Theoretical study of the molecular and electronic structure of one-dimensional crystals of potassium iodide and composites formed upon intercalation in single-walled carbon nanotubes