Cross sections for bare and dressed carbon ions in water and neon