Thermo-optical and thermo-elastic effects onboard the LISA Pathfinder mission