Elaboration of collisional-radiative models applied to Earth and Mars entry problems