Analysis and suppression of thermal effect of an ultra-stable laser interferometer for space-based gravitational waves detection