Conformational effects on structure, electron states, and raman scattering properties of linear carbon chains terminated by graphene-like pieces