High-resolution spectroscopic studies of carbon-containing species