Thermo-optical modelling of optical components