Duality relation between radiation thermodynamics and cosmic string loop thermodynamics