Simulation of thermal effects in interferometric gravitational-wave detectors