Optical limiting effects in linear carbon chains