Balance of ionization and recombination of carbon ions in high density peripheral plasmas of the JT-60 U tokamak