Structural and electronic properties of carbon nanowires made of linear carbon chains enclosed inside zigzag carbon nanotubes