On the electronic structures and spectroscopic properties of polyyne and its derivatives