Entropy budget of an atmosphere in radiative-convective equilibrium