Analysis of the influence of the plasma thermodynamic regime in the spectrally resolved and mean radiative opacity calculations of carbon plasmas in a wide range of density and temperature