Analysis of thermal radiation in ion traps for optical frequency standards