Spectroscopic study of polyynes obtained by laser ablation in liquids