The effects of liquid environments on the optical properties of linear carbon chains prepared by laser ablation generated plasmas